namespace Pp.Dto.Validators
{
    using System.ComponentModel.DataAnnotations;
    using Globalization;

    public class NumberValidator : RegularExpressionAttribute
    {
        public NumberValidator()
            : base(@"[-+]?[0-9]*\.?[0-9]*")
        {
            ErrorMessage = Res.Error_NotString;
        }
    }
}